package cn.rulian.base.curd.vo;

import java.util.List;
import java.util.Map;

import cn.rulian.base.curd.bo.Curd;
import cn.rulian.base.curd.bo.CurdField;

/**
 * Curd元数据
 */
public class CurdMeta {
	
	private Curd curd;	//主配置
	private List<CurdField> queryFields; //查询条件
	private List<CurdField> listFields; //列表
	private List<CurdField> sumFields; //需要求和的属性列表
	private List<CurdField> addFields; //增加页面
	private List<CurdField> updateFields; //编辑页面
	private List<CurdField> detailFields; //详情页面

	private List<List<CurdField>> addFields2; //增加页面（双层数据列表）
	private List<List<CurdField>> updateFields2; //编辑页面（双层数据列表）
	private List<List<CurdField>> detailFields2; //详情页面（双层数据列表）
	
	private Map<String,String> map; //其他辅助生成代码的值
	
	//以下三个属性，因增加、编辑共用一个模板而增加
	private String type; //类型，主要用于区分生成增加页面和编辑页面，两个页面用的是一个模板，所以需要区分
	private List<CurdField> tempFields; //临时中转（用于增加、编辑页面）
	private List<List<CurdField>> tempFields2; //临时中转（用于增加、编辑页面）
	
	private String temp; //临时标识,用于区分测试代码和正式代码
	
	public Curd getCurd()
	{
		return curd;
	}
	public void setCurd(Curd curd)
	{
		this.curd = curd;
	}
	public List<CurdField> getListFields()
	{
		return listFields;
	}
	public void setListFields(List<CurdField> listFields)
	{
		this.listFields = listFields;
	}
	public List<CurdField> getAddFields()
	{
		return addFields;
	}
	public void setAddFields(List<CurdField> addFields)
	{
		this.addFields = addFields;
	}
	public List<CurdField> getUpdateFields()
	{
		return updateFields;
	}
	public void setUpdateFields(List<CurdField> updateFields)
	{
		this.updateFields = updateFields;
	}
	public List<CurdField> getDetailFields()
	{
		return detailFields;
	}
	public void setDetailFields(List<CurdField> detailFields)
	{
		this.detailFields = detailFields;
	}
	public List<CurdField> getQueryFields()
	{
		return queryFields;
	}
	public void setQueryFields(List<CurdField> queryFields)
	{
		this.queryFields = queryFields;
	}
	public Map<String, String> getMap()
	{
		return map;
	}
	public void setMap(Map<String, String> map)
	{
		this.map = map;
	}
	public List<CurdField> getSumFields()
	{
		return sumFields;
	}
	public void setSumFields(List<CurdField> sumFields)
	{
		this.sumFields = sumFields;
	}
	public List<List<CurdField>> getAddFields2()
	{
		return addFields2;
	}
	public void setAddFields2(List<List<CurdField>> addFields2)
	{
		this.addFields2 = addFields2;
	}
	public List<List<CurdField>> getUpdateFields2()
	{
		return updateFields2;
	}
	public void setUpdateFields2(List<List<CurdField>> updateFields2)
	{
		this.updateFields2 = updateFields2;
	}
	public List<List<CurdField>> getDetailFields2()
	{
		return detailFields2;
	}
	public void setDetailFields2(List<List<CurdField>> detailFields2)
	{
		this.detailFields2 = detailFields2;
	}
	public String getType()
	{
		return type;
	}
	public void setType(String type)
	{
		this.type = type;
	}
	public List<CurdField> getTempFields()
	{
		return tempFields;
	}
	public void setTempFields(List<CurdField> tempFields)
	{
		this.tempFields = tempFields;
	}
	public List<List<CurdField>> getTempFields2()
	{
		return tempFields2;
	}
	public void setTempFields2(List<List<CurdField>> tempFields2)
	{
		this.tempFields2 = tempFields2;
	}
	public String getTemp()
	{
		return temp;
	}
	public void setTemp(String temp)
	{
		this.temp = temp;
	}
	
}
